home *** CD-ROM | disk | FTP | other *** search
/ .net 2000 August / NET74.ISO / pc / Software / JavaApplet / AnfyMacBeta1.sea / Anfy for Macintosh / anjavapp / rot / rota.txt < prev    next >
Encoding:
Text File  |  1999-07-05  |  6.5 KB  |  148 lines  |  [TEXT/ttxt]

  1.  
  2.           AnfyRotate - Copyright (C) by Fabio Ciucci 1996-99
  3.  
  4.  
  5. This applet can zoom and rotate (eventually distorted) any GIF or JPG image.
  6. The only requirement is that this image must be equally sized to one of the
  7. powers of 2 (64x64 pixel, or 32x64, 128x128, ...). This applet is fully
  8. parametrized, so you can generate all kinds of rotator effects.
  9.  
  10. The animation smalyelo.gif is a courtesy of Jim Self.
  11.  
  12. *****************************************************************************
  13.  
  14. NECESSARY FILES.
  15.  
  16. Apart from a background image and/or a foreground image, the following 3
  17. ".class" files must be uploaded: 
  18.  
  19. Rot2.class
  20. Lware.class
  21. anfy.class
  22.  
  23. Plus, Rot2.jar for speedy loading on recent browsers.
  24.  
  25. *****************************************************************************
  26.  
  27. EXAMPLE.
  28.  
  29. Insert the <applet> tag in your html document as follows to add this applet
  30. to your page (Comments after the ";" symbol are code descriptions and
  31. acceptable min/max values. They are not part of the applet language):
  32.  
  33.  
  34. <applet archive="Rot2.jar" code="Rot2.class" width="200" height="180">
  35. <param name="credits" value="Applet by Fabio Ciucci (www.anfyteam.com)">
  36. <param name="regcode" value="NO">          ; Registration code (if you have it)
  37. <param name="reglink" value="NO">          ; Optional URL link when the applet
  38.                                            is "clicked".
  39. <param name="regnewframe" value="YES">         ; Reglink opened in new frame?
  40. <param name="regframename" value="_blank">     ; Name of new frame for reglink
  41. <param name="statusmsg" value="Rotator applet"> ; Statusbar message
  42. <param name="image" value="img64n1.GIF">        ; Image to load
  43. <param name="res" value="1">                  ; resolution (1-8)
  44. <param name="rotmode" value="6">              ; mode (1-6)
  45. <param name="rspeed" value="2">               ; rotation speed (1-8)
  46. <param name="zoommin" value="4">              ; zoom min value (0-80)
  47. <param name="zoommax" value="25">            ; zoom max value (0-80)
  48. <param name="zoomspd" value="4">             ; zoom speed (1-20)
  49. <param name="modix" value="1">               ; distort modify x (0-8)
  50. <param name="modiy" value="2">               ; distort modify y (0-8)
  51. <param name="auto1" value="100">             ; auto wait 1 (0-10000)
  52. <param name="auto2" value="230">             ; auto wait 2 (0-10000)
  53. <param name="distval" value="40">            ; Distort value (1 .. 255)
  54. <param name="tile" value="YES">              ; Tile images ("YES" or "NO")
  55. <param name="backimage" value="NO">          ; Optional background image
  56. <param name="backr" value="64">              ; Red in background (0 .. 255)
  57. <param name="backg" value="96">              ; Green in background (0 .. 255)
  58. <param name="backb" value="160">             ; Blue in background (0 .. 255)
  59. <param name="overimg" value="NO">            ; Optional image over applet
  60. <param name="overimgX" value="0">            ; Over image X offset
  61. <param name="overimgY" value="0">            ; Over image Y offset
  62. <param name="memdelay" value="1000">         ; Memory deallocation delay
  63. <param name="priority" value="3">            ; Task priority (1..10)
  64. <param name="MinSYNC" value="10">            ; Min. milliseconds/frame for sync
  65. Sorry, your browser doesn't support Java.  ; Message for no java browsers.
  66. </applet>                                  ; End of applet tag
  67.  
  68. *****************************************************************************
  69.  
  70. INSTRUCTIONS.
  71.  
  72. The following instructions describe how to change parameters:
  73.  
  74. Attempting to change the credits parameter will disable the applet.
  75.  
  76. To activate the reg parameters read the shareware registration notes.
  77. In the "regcode" parameter, place the registration code you purchased
  78. from the author. If the code is correct and the applet is run from the
  79. registered domain name, you can use "link" parameters to link to a URL
  80. when the applet is "clicked".
  81.  
  82. If you set "regnewframe" to "YES", you can specify a specific frame 
  83. location for the reglink:
  84.  
  85. "_blank"  : To load the link in a new blank unnamed browser window.
  86. "_self"   : To load the link into the same window the applet occupies.
  87. "_parent" : To load the link into the immediate FRAMESET parent.
  88. "_top"    : To load the link into the top body of the window.
  89.  
  90. You can also set a custom frame name, such as "myframe1".
  91.  
  92. With the "overimg" parameter you can specify the name of an image that will
  93. be painted over the applet. The best options are transparent GIF images.
  94. NOTE: Animated GIF images are supported, but will be animated only on latest
  95.  browsers (Netscape 4 and Explorer 4 or newer).
  96.  
  97. With "overimgX" and "overimgY" you can center the image over the applet area.
  98.  
  99. The GIF or JPEG image must be equally sized to one of the powers of 2 (64x64
  100. pixel, or 32x64, 128x128, ...). For example, valid sizes are 8*8, 8*16, 8*32,
  101. 16*32, 32*16, 32*32, 64*64,64*32, 128*32, 128*64, 32*128, 128*128, 256*128...
  102.  
  103. The size of the applet is determined by the width and height tags, and can be
  104. different from the size of the image.
  105.  
  106. The "res" parameter determines the resolution: with res=1 pixels are small,
  107. but effect is slow.With res=8 pixels are too big but the effect is faster.
  108. Optimum choices are 1-3.
  109.  
  110. If you want to fill the applet area with tiling the image, set the "tile"
  111. parameter to "YES". If you set it to "NO", a background colour will be
  112. used to fill the space outside the single image.
  113.  
  114. With "backr", "backg" and "backb" parameters, you can control the RED, GREEN
  115. and BLUE components of the background colour.
  116.  
  117. You can load a background image by placing it's name in the "backimage"
  118. parameter. This image must be the same size as that of the applet if res=1, 
  119. half the size of the applet if res=2, and so on.
  120.  
  121. Rotmode is the mode of running. Here are the modes:
  122.  
  123. 1) Zoom and Rotate
  124. 2) Rotate only
  125. 3) Zoom only
  126. 4) Distort only
  127. 5) Zoom and Distort
  128. 6) Automatic show: ZoomOnly, then Zoom&Rotate, then Zoom&Distort
  129.  
  130. You can control the speed of rotation with "rspeed"; the min value
  131. and max value for zoom (when you change zoom direction) with "zoommin" and 
  132. "zoommax", and  the speed of zoom with "zoomspd".
  133.  
  134. You can also determine the distort factors: "modix" for X axis and "modiy" for
  135. the Y axis.
  136.  
  137. With "distval", you can control the overall distortion strength, placing a
  138. value from 1 to 255.
  139.  
  140. Finally, you can decide the timing of mode 6 (automatic show): auto1 is the
  141. time to wait before swap between zoom and zoom&rotate, and auto2 is used
  142. to wait for the other swap, from zoom&rotate to zoom&distort.
  143. Swap2 must be >= swap1. If swap1=0 then you skip Zoom and start
  144. directly with Zoom&rotate. If swap1=swap2 you skip Zoom&Rotate, jumping
  145. from zoom only to distort & rotate, and so on....
  146.  
  147.  
  148.